#include<bits/stdc++.h>

using namespace std;
using ll = long long;
#define endl '\n'

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    map<char, int> m;
    for (char ch; cin >> ch;) {
        if (ch == '#')break;
        ++m[tolower(ch)];
    }
    for (char ch = 'a'; ch <= 'z'; ++ch) {
        cout << ch << " " << m[ch] << endl;
    }

    return 0;
}
